<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>主机管理</title>

    <%@include file="../include/csslib.jsp"%>
	<link href="${pageContext.request.contextPath}/static/web_css/host/host.css" rel="stylesheet" type="text/css">
</head>

<body>

<div class="wrapper dashboard">

    <!-- 右侧 -->
    <div class="main">

        <!-- 内容区 -->
        <div class="content_container container-fluid">
            <div class="row">
                <!-- pane1 -->
                <div class=" col-sm-12">
                    <div class="pane">
                      <h2><span>上架/线上主机列表</span></h2>

                        <div class="pane_condition">

                        </div>

                        <div class="pane_content">

                            <table id="table" data-sort-name="hostId" data-sort-order="desc"></table>

                        </div>

                    </div>
                </div>
            </div>

        </div>
        <!-- 内容区结束 -->

    </div>
    <!-- 右侧  结束-->




</div>

 <div id="toolbar" >
<!--     <button id="btn_add" type="button" class="btn btn-info btn-icon">
        <span class="icon"><i class="fa fa-plus"></i></span>新增
    </button>
    
    <button id="btn_edit" type="button" class="btn btn-success btn-icon">
        <span class="icon"><i class="fa fa-edit"></i></span>修改
    </button>
    
    <button id="btn_online" type="button" class="btn btn-success">
        <span class="icon"><i class="fa"></i></span>查看上架主机
    </button>
    
    <button id="btn_offline" type="button" class="btn btn-danger">
        <span class="icon"><i class="fa"></i></span>查看下架主机
    </button>
    <button id="btn_delete" type="button" class="btn btn-danger btn-icon">
        <span class="icon"><i class="fa fa-trash"></i></span>删除
    </button>
    <button id="btn_online_host" type="button" class="btn btn-success">
        <span class="icon"><i class="fa"></i></span>上架
    </button>
    <button id="btn_offline_host" type="button" class="btn btn-danger">
        <span class="icon"><i class="fa"></i></span>下架
    </button> -->
</div>


 <div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="detailModalTitle"></h4>
            </div>
            <div class="modal-body">
                <form id="host_form">
                	<input type="hidden"  id="hostId" name="hostId" >
                	
                    <input type="hidden"  id="action_type" name="action_type" >
                    
                    <div class="form-group required">
		                <label for="gameId">所属游戏:</label>
	                    <select id="gameId" name="gameId">
	
	                    </select>
	                </div>
                    
                    <div class="form-group required">
                        <label for="property">出机方:</label>
                        <input type="text" class="form-control" id="property" name="property" placeholder="相当于大渠道，看怎么关联上大渠道">
                    </div>

                    <div class="form-group required">
                        <label for="idc">机房:</label>
                        <input type="text" class="form-control" id="idc" name="idc" placeholder="机房">
                    </div>
                    <div class="form-group required">
                        <label for="area">地区:</label>
                        <input type="text" class="form-control" id="area" name="area" placeholder="相当于游戏版本，看怎么关联上游戏版本">
                    </div>
                    <div class="form-group">
                        <label for="ctccIp">电信ip:</label>
                        <input type="text" class="form-control" id="ctccIp" name="ctccIp" placeholder="电信ip">
                    </div>
                    <div class="form-group">
                        <label for="cuccIp">联通ip:</label>
                        <input type="text" class="form-control" id="cuccIp" name="cuccIp" placeholder="联通ip">
                    </div>
                    <div class="form-group">
                        <label for="cmccIp">移动ip:</label>
                        <input type="text" class="form-control" id="cmccIp" name="cmccIp" placeholder="移动ip">
                    </div>
                    <div class="form-group required">
                        <label for="lanIp">局域网ip:</label>
                        <input type="text" class="form-control" id="lanIp" name="lanIp" placeholder="局域网ip">
                    </div>
                    <div class="form-group required">
                        <label for="sshPort">ssh端口号:</label>
                        <input type="text" class="form-control" id="sshPort" name="sshPort" placeholder="ssh端口号">
                    </div>
                    <div class="form-group required">
                        <label for="maxGameServerCount">最大游戏数:</label>
                        <input type="text" class="form-control" id="maxGameServerCount" name="maxGameServerCount" placeholder="16G内存填2,32G填4,64G填8">
                    </div>
                    
                    <div id="roleDiv" class="form-group required">
                        <label for="role">角色:</label>
                        <select id="role" name="role">
						   <option value="1">测试服</option>
						   <option value="2">游戏服</option>
						   <option value="4">中央服</option>
						   <option value="5">消息服</option>
						   <option value="6">下载服</option>
						   <option value="7">其他</option>
						</select>
                    </div>
                    
                    <div id="stateDiv" class="form-group required">
                        <label for="state">状态:</label>
                        <select id="state" name="state">
						   <option value="1">上架</option>
						   <option value="0">下架</option>
						</select>
                    </div>
                     
                    <div class="form-group">
                        <label for="remark">备注:</label>
                        <textarea class="form-control" id="remark" name="remark" placeholder="备注"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" id="btn_submit" class="btn btn-primary">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<%@include file="../include/jslib.jsp"%>
<script src="${pageContext.request.contextPath}/static/web_js/host/online_host.js"></script>
</body>
</html>